package com.example.health_life.service;

import com.example.health_life.dao.Video;
import java.util.List;

public interface VideoService {
    List<Video> getVideoList();
    
    List<Video> getVideosByCourseId(Integer courseId);
    
    Video getVideoById(Integer id);
    
    List<Video> getVideoListWithAuthor();

    List<Video> getVideoListWithAuthorByStatus(Integer status);
    
    Video getVideoByIdWithAuthor(Integer id);
    
    List<Video> getVideosByCourseIdWithAuthor(Integer courseId);
    
    int addVideo(Video video);
    
    int deleteVideo(Integer id);
    
    int updateVideo(Integer id, String title, String url, Integer duration, 
                   Integer orderNum, Byte status, String coverImg);
}
